<%--
  @desc: 系统操作日志列表
  @author: chenw
  @create: 2014-4-29 下午 15:32
--%>
<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<style type="text/css">
    .keywords {
        width: 250px;
        font-family: '微软雅黑', sans-serif, serif;
    }
</style>
<div class="pageHeader">
    <form rel="pageForm" onsubmit="return navTabSearch(this);" action="<c:url value='/sys/black/list'/>" method="post">
        <div class="searchBar">
            <ul>
                <li style="float: left;line-height: 25px;">
                    <label style="width: 50px;">关键字：</label>
                    <input name="keywords" type="text" value="${query.keywords}" placeholder="请输入操作原因、操作人姓名" class="keywords"/>
                </li>
                <li>
                    <div class="buttonActive" style="margin-left: 5px;">
                        <div class="buttonContent">
                            <button type="submit">查找</button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>
<div class="pageContent" style="padding-top: 1px;">
    <table class="table" width="100%" layoutH="88">
        <thead>
        <tr>
            <th width="40" align="center">序号</th>
            <th width="110">黑名单人员</th>
            <th width="110">操作人姓名</th>
            <th width="110">操作原因</th>
            <th>操作内容</th>
            <th width="120" orderField="time" <c:if test='${query.orderField eq "time" }'> class="${query.orderDirection}"</c:if>>操作时间</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach var="blacklog" items="${pager.list}" varStatus="vs">
            <tr>
                <td>${vs.count+(pager.pageNum-1)*pager.numPerPage}</td>
                <td title="${blacklog.userName}">${blacklog.userName}</td>
                <td title="${blacklog.operate_name}">${blacklog.operate_name}</td>
                <td title="${blacklog.case_content}">${blacklog.case_content}</td>
                <td title="${blacklog.operate_content}">${blacklog.operate_content}</td>
                <td><fmt:formatDate value="${blacklog.time}" pattern="yyyy-MM-dd HH:mm"/></td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>显示&nbsp;</span>
            <select id="cob_ps" class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20">20</option>
                <option value="50">50</option>
                <option value="100">100</option>
                <option value="200">200</option>
            </select>
            <span>条，共${pager.total}条</span>
        </div>
        <div class="pagination" targetType="navTab" totalCount="${pager.total}" numPerPage="${pager.numPerPage}" pageNumShown="10"
             currentPage="${pager.pageNum}"></div>
    </div>
    <form id="pagerForm" method="post" action="<c:url value='/sys/black/list'/>">
        <input type="hidden" name="pageNum" value="${pager.pageNum}"/>
        <input type="hidden" name="keywords" value="${query.keywords}"/>
        <input type="hidden" name="numPerPage" value="${pager.numPerPage}"/>
        <input type="hidden" name="orderField" value="${query.orderField}"/>
        <input type="hidden" name="orderDirection" value="${query.orderDirection}"/>
    </form>
</div>
